<template>
  <div class="info">
    <el-form label-width="80px">
      <el-form-item label="企业名称">
        <el-input v-model="list.name" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="list.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="公司电话">
        <el-input v-model="list.companyPhone" disabled />
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input v-model="list.mailbox" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="list.remarks" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { Company } from '@/api/setter.js'
import { mapState } from 'vuex'
export default {
  data () {
    return {
      list: []
    }
  },
  computed: {
    ...mapState('user', ['userInfo'])
  },
  async created () {
    const res = await Company(this.userInfo.companyId)
    // console.log(res)
    this.list = res.data
  }
}
</script>

<style lang="scss" scoped></style>
